<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

include_once '../DBAccess/DBAccess.php';
include_once '../Algos/Window/deperditionZenithalWindows.php';
include_once '../Objects/ZenithalWindow.php';
include_once '../Objects/House.php';

try
  {
    $Mysql = new DBAccess('153.109.141.81:3306', 'savenrj', 'root', '');
    
$z = array();
$z[0] = new ZenithalWindow();
    $house;
    
 $house = new House(4, 1, 1, 2, 50, 100, '', '', '', '', '', 77, 20, 2, 1975, '', '', '', '', $z, false, false);
     //$house = new House(4, 1, 1, 'square', 'Sion', 20, 2, 1970, 150 , 30, $walls, false , false);

    
    
    $algo;
    $algo = new AlgoZenithalWindows();
    
    
    //echo 'TotalWin : '.$algo2->getTotalSurfaceWindows($walls);
   
    echo '<br></br>Déperdition totale';
    echo $algo->getTotalDeperditionZenithalWindow($house);
    
     echo '<br></br>SRE';
    echo $algo->getSRE($house);
    
    // echo '<br></br>Surface';
    //echo $algo->getTotalSurfaceRoof($house);
    
    
     
  
   
    
  }
  catch (MySQLExeption $e) 
  {
    echo $e -> RetourneErreur();
  }
?>
